home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / u_man / cat3 / Tk / send.z / send
Encoding:
Text File  |  1998-10-30  |  4.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4. sssseeeennnndddd((((3333TTTTkkkk))))                                                            sssseeeennnndddd((((3333TTTTkkkk))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      send - Execute a command in a different application
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      sssseeeennnndddd ????_o_p_t_i_o_n_s? _a_p_p _c_m_d ?_a_r_g _a_r_g ...?                                     |
  13.  
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      This command arranges for _c_m_d (and _a_r_gs) to be executed in the
  17.      application named by _a_p_p.  It returns the result or error from that
  18.      command execution.  _A_p_p may be the name of any application whose main
  19.      window is on the display containing the sender's main window;  it need
  20.      not be within the same process.  If no _a_r_g arguments are present, then
  21.      the command to be executed is contained entirely within the _c_m_d argument.
  22.      If one or more _a_r_gs are present, they are concatenated to form the
  23.      command to be executed, just as for the eeeevvvvaaaallll command.
  24.  
  25.      If the initial arguments of the command begin with ``-'' they are treated
  26.      as options.  The following options are currently defined:
  27.  
  28.      ----aaaassssyyyynnnncccc
  29.           Requests asynchronous invocation.  In this case the sssseeeennnndddd command    |
  30.           will complete immediately without waiting for _c_m_d to complete in the|
  31.           target application.  If the target application is in the same       |
  32.           process as the sending application then the ----aaaassssyyyynnnncccc option is        |
  33.           ignored.
  34.  
  35.      ----ddddiiiissssppppllllaaaayyyyooooffff _p_a_t_h_N_a_m_e
  36.           Specifies that the target application's main window is on the       |
  37.           display of the window given by _p_a_t_h_N_a_m_e, instead of the display     |
  38.           containing the application's main window.
  39.  
  40.      --------   Serves no purpose except to terminate the list of options.  This    |
  41.           option is needed only if _a_p_p could contain a leading ``-''          |
  42.           character.
  43.  
  44.  
  45. AAAAPPPPPPPPLLLLIIIICCCCAAAATTTTIIIIOOOONNNN NNNNAAAAMMMMEEEESSSS
  46.      The name of an application is set initially from the name of the program
  47.      or script that created the application.  You can query and change the
  48.      name of an application with the ttttkkkk aaaappppppppnnnnaaaammmmeeee command.
  49.  
  50.  
  51. DDDDIIIISSSSAAAABBBBLLLLIIIINNNNGGGG SSSSEEEENNNNDDDDSSSS
  52.      If the sssseeeennnndddd command is removed from an application (e.g.  with the
  53.      command rrrreeeennnnaaaammmmeeee sssseeeennnndddd {{{{}}}}) then the application will not respond to incoming
  54.      send requests anymore,  nor will it be able to issue outgoing requests.
  55.      Communication can be reenabled by invoking the ttttkkkk aaaappppppppnnnnaaaammmmeeee command.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. sssseeeennnndddd((((3333TTTTkkkk))))                                                            sssseeeennnndddd((((3333TTTTkkkk))))
  71.  
  72.  
  73.  
  74. SSSSEEEECCCCUUUURRRRIIIITTTTYYYY
  75.      The sssseeeennnndddd command is potentially a serious security loophole, since any
  76.      application that can connect to your X server can send scripts to your
  77.      applications.  These incoming scripts can use Tcl to read and write your
  78.      files and invoke subprocesses under your name.  Host-based access control
  79.      such as that provided by xxxxhhhhoooosssstttt is particularly insecure, since it allows
  80.      anyone with an account on particular hosts to connect to your server, and
  81.      if disabled it allows anyone anywhere to connect to your server.  In
  82.      order to provide at least a small amount of security, Tk checks the
  83.      access control being used by the server and rejects incoming sends unless
  84.      (a) xxxxhhhhoooosssstttt-style access control is enabled (i.e. only certain hosts can
  85.      establish connections) and (b) the list of enabled hosts is empty.  This
  86.      means that applications cannot connect to your server unless they use
  87.      some other form of authorization such as that provide by xxxxaaaauuuutttthhhh.
  88.  
  89.  
  90. KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  91.      application, name, remote execution, security, send
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.